home *** CD-ROM | disk | FTP | other *** search
/ STraTOS 1997 April & May / STraTOS 1 - 1997 April & May.iso / CD01 / PRGMANIA / VERSION1.5 / VT52.H < prev    next >
Encoding:
C/C++ Source or Header  |  1987-04-21  |  2.9 KB  |  117 lines

  1. /************************************/
  2. /*    Bildschirm-Steuercodes        */
  3. /*    als Zeichen und               */
  4. /*    Pseudo-Funktionen 'define'd   */
  5. /*    von Holger Weets fuer         */
  6. /*    SOZOBON-C imlementiert        */
  7. /*                                  */
  8. /*    letzte Aenderung: 14.01.90    */
  9. /************************************/
  10.  
  11.  
  12. #ifndef _VT52_
  13.  
  14. #define _VT52_
  15.  
  16. /* Cursor hoch */
  17. #define CUR_UP       "\033A"
  18. #define cur_up()     Bconout(CUR_UP)
  19.  
  20. /* Cursor runter */
  21. #define CUR_DWN      "\033B"
  22. #define cur_dwn()    Bconout(CUR_DWN)
  23.  
  24. /* Cursor rechts */
  25. #define CUR_RIGHT    "\033C"
  26. #define cur_right()  Bconout(CUR_RIGHT)
  27.  
  28. /* Cursor links */
  29. #define CUR_LEFT     "\033D"
  30. #define cur_left()   Bconout(CUR_LEFT)
  31.  
  32. /* Bildschirm loeschen */
  33. #define CLS          "\033E"
  34. #define cls()        Bconout(CLS)
  35.  
  36. /* Cursor in linke obere Ecke */
  37. #define CUR_HOME     "\033H"
  38. #define cur_home()   Bconout(CUR_HOME)
  39.  
  40. /* Cursor hoch, evtl. scrollen */
  41. #define CUR_SUP      "\033I"
  42. #define cur_sup()    Bconout(CUR_SUP)
  43.  
  44. /* Bildschirm ab Cursor loeschen */
  45. #define CLR_CSCR     "\033J"
  46. #define clr_csrc()   Bconout(CLR_CSCR)
  47.  
  48. /* Zeile ab Cursor loeschen */
  49. #define DEL_CLIN     "\033K"
  50. #define del_clin()   Bconout(DEL_CLIN)
  51.  
  52. /* Zeile einfuegen */
  53. #define INS_LIN      "\033L"
  54. #define ins_lin()    Bconout(INS_LIN)
  55.  
  56. /* Zeile herausloeschen */
  57. #define DEL_SLIN     "\033M"
  58. #define del_slin()   Bconout(DEL_SLIN)
  59.  
  60. /* Cursor positionieren */
  61. #define CUR_POS      "\033Y"
  62. #define cursor(x,y)  Bconout(CUR_POS),Bconout((y)+32),Bconout((x)+32)
  63.  
  64. /* Schriftfarbe setzen /
  65. #define VOR_COL      "\033b"
  66. #define vor_col(x)   Bconout(VOR_COL),Bconout(x)
  67.  
  68. /* Hintergrundfarbe setzen */
  69. #define BAK_COL      "\033c"
  70. #define bak_col(x)   Bconout(BAK_COL),Bconout(x)
  71.  
  72. /* Bildschirm bis Cursor loeschen */
  73. #define CLR_SCRC     "\033d"
  74. #define clr_scrc()   Bconout(CLR_SCRC)
  75.  
  76. /* Cursor einschalten */
  77. #define CUR_ON       "\033e"
  78. #define cur_on()     Bconout(CUR_ON)
  79.  
  80. /* Cursor ausschalten */
  81. #define CUR_OFF      "\033f"
  82. #define cur_off()    Bconout(CUR_OFF)
  83.  
  84. /* Cursorposition speichern */
  85. #define CUR_SAV      "\033j"
  86. #define cur_sav()    Bconout(CUR_SAV)
  87.  
  88. /* Cursor an gespeicherte Position setzen */
  89. #define CUR_RES      "\033k"
  90. #define cur_res()    Bconout(CUR_RES)
  91.  
  92. /* Zeile loeschen */
  93. #define DEL_LIN      "\033l"
  94. #define del_lin()    Bconout(DEL_LIN)
  95.  
  96. /* Zeile bis Cursor loeschen */
  97. #define DEL_LINC     "\033o"
  98. #define del_linc()   Bconout(DEL_LINC)
  99.  
  100. /* Invers ein */
  101. #define REV_ON       "\033p"
  102. #define rev_on()     Bconout(REV_ON)
  103.  
  104. /* Invers aus */
  105. #define REV_OFF      "\033q"
  106. #define rev_off()    Bconout(REV_OFF)
  107.  
  108. /* Zeilen-Ueberlauf ein */
  109. #define OVR_ON       "\033v"
  110. #define ovr_on()     Bconout(OVR_ON)
  111.  
  112. /* Zeilen-Ueberlauf aus */
  113. #define OVR_OFF      "\033w"
  114. #define ovr_off()    Bconout(OVR_OFF)
  115.  
  116. #endif _VT52_
  117.